#ifndef _MAINTHREAD_H_
#define _MAINTHREAD_H_

enum {
	NONE_EVENT = 0,
	POWER_KEY_PRESS_EVENT ,
	POWER_KEY_REL_EVENT,
	USER_KEY_SHORTPRESS_EVENT,
	USER_KEY_LONGPRESS_EVENT,
	CHARGING_ON_EVNET,
	CHARGING_OFF_EVENT,
	MERCURY_ON_EVENT
};


int mainThreadHanler(void);

int send_event(int evnet_num);

int get_event(void);


void wakeup_handler(void);

void setDisChargingLevel(unsigned char level);

unsigned char getDisChargingLevel(void);

void delay_ms(int time);

#endif
